<i nz-icon [nzIconfont]="icon" class="icon" *ngIf="icon"></i>

<div #box>
  <div
    nz-tooltip
    [nzTooltipTitle]="text"
    class="box"
    *ngIf="isOver; else over"
  >
    {{ text }}
  </div>

  <ng-template #over>
    {{ text }}
  </ng-template>
</div>
